<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script >
    var str ="1231234567"
    console.log(str.indexOf("1,1"));//indexof（搜索词，开始索引）返回3

    console.log(str.search("312"));//搜索字符串

    console.log(str.match("3"));//返回对象["3", index: 2, input: "123123123", groups: undefined]
    // console.log(str.match(""));//正则

    console.log(str.replace('567','abc'));
    // console.log(str.replace('567','abc'));正则

    console.log(str.split('3',2));
    console.log(str.split('3',3));
    console.log(str.split('3',4));



</script>

</body>
</html>